home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex209 / contrib / misc / marginote.sty < prev    next >
Text File  |  1993-06-30  |  4KB  |  76 lines

  1. %%% ======================================================================
  2. %%%  @LaTeX-style-file{
  3. %%%     filename        = "marginote.sty",
  4. %%%     version         = "2.0",
  5. %%%     date            = "1 July 1993",
  6. %%%     time            = "09:07:08 CDT",
  7. %%%     author          = "George D. Greenwade",
  8. %%%     address         = "Department of Economics and Business Analysis
  9. %%%                        College of Business Administration
  10. %%%                        P. O. Box 2118
  11. %%%                        Sam Houston State University
  12. %%%                        Huntsville, Texas, USA 77341-2118",
  13. %%%     email           = "bed_gdg@SHSU.edu (Internet)
  14. %%%                        BED_GDG@SHSU     (BITNET)
  15. %%%                        SHSU::BED_GDG    (THENET)",
  16. %%%     telephone       = "(409) 294-1266",
  17. %%%     FAX             = "(409) 294-3712",
  18. %%%     supported       = "yes",
  19. %%%     archived        = "SHSU*",
  20. %%%     keywords        = "LaTeX, marginal notes",
  21. %%%     codetable       = "ISO/ASCII",
  22. %%%     abstract        = "Create command \marginote{text} to use marginal
  23. %%%                        notes in a document.  Each marginal note is
  24. %%%                        denoted by the fnsymbol sequence and does not
  25. %%%                        alter any know counters other than those created.
  26. %%%                        Original version September 12, 1989.",
  27. %%%     modifications   = "Modified 1 July 1993 in response to report from
  28. %%%                        Bradley C. Kuszmaul <bradley@theory.lcs.mit.edu>
  29. %%%                        via David M. Jones <dmjones@theory.lcs.mit.edu>
  30. %%%                        that a `gratuitous space' was introduced in the
  31. %%%                        \stepcounter{marginalnote} (dumb mistake on my
  32. %%%                        part!).  Also added this file header and added
  33. %%%                        \endinput at the end of the file.",
  34. %%%     checksum        = "11442 75 385 3712",
  35. %%%     docstring       = "The checksum field above contains a CRC-16
  36. %%%                        checksum as the first value, followed by the
  37. %%%                        equivalent of the standard UNIX wc (word
  38. %%%                        count) utility output of lines, words, and
  39. %%%                        characters.  This is produced by Robert
  40. %%%                        Solovay's checksum utility."
  41. %%% }
  42. %%% ======================================================================
  43. \typeout{LaTeX document substyle 'marginote.sty'  July 1, 1993 (GDG)}
  44.  
  45. \topmargin 0pt                       %% this code from FULLPAGE.STY
  46. \advance \topmargin by -\headheight  %%
  47. \advance \topmargin by -\headsep     %%
  48.  
  49. \textheight 8.9in                    %%
  50.  
  51. \oddsidemargin 0pt                   %%
  52. \evensidemargin \oddsidemargin       %%
  53. \marginparwidth 1.1in                %% changed (+.6in) to allow for notes
  54.  
  55. \textwidth 5.9in                     %% changed (-.6in) to allow for notes
  56.                                      %% end of FULLPAGE.STY
  57.  
  58. \newcounter{marginalnote}
  59. \def\themarginalnote{\fnsymbol{marginalnote}}
  60. \newcount\marginalnotecounter
  61. \marginalnotecounter=0
  62.  
  63. \def\marginote#1{\ifmmode %% Can't use \marginpar in math mode, thus ...
  64. \typeout{ }
  65. \typeout{\string \marginote \space error.  Cannot use \string \marginote \space
  66. in math mode. Ignoring text.}
  67. \typeout{ }
  68. \else \ifnum \marginalnotecounter=9 \setcounter{marginalnote}{0}
  69. \marginalnotecounter= 0 \fi  %% fnsymbol only goes to 9
  70. \stepcounter{marginalnote}%  -- line split -- GDG 1-JUL-1993
  71. \advance\marginalnotecounter 1
  72. {$^{\themarginalnote}$\ \marginpar{\raggedright %% \raggedright just looks
  73. \footnotesize $\themarginalnote.$\ #1}}      %% better in such a small space
  74. \fi}
  75. \endinput % -- added -- GDG 1-JUL-1993
  76.